#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <string.h>
void reverse(const char*p1)
{
	char* p2 = p1;
	char* p3 = p1 + strlen(p1) - 1;
	while (p2 <= p3)
	{
		char tmp = *p2;
		*p2 = *p3;
		*p3 = tmp;
		p2++;
		p3--;
	}
}
int main()
{
	char arr[30] = { 0 };
	scanf("%[^\n]s", arr);
	reverse(arr);
	printf("%s", arr);
	return 0;
}